<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>My First Stripe</title></head>
  <body>
    <h1>Stripes Calculator</h1>

    Hi, I'm the Stripes Calculator. I can only do addition. Maybe, some day, a nice programmer
    will come along and teach me how to do other things?

    <stripes:form action="/stackstripes/Calculator.action" focus="">
        <table>
            <tr>
                <td>Number 1:</td>
                <td><stripes:text name="numberOne"/></td>
            </tr>
            <tr>
                <td>Number 2:</td>
                <td><stripes:text name="numberTwo"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <stripes:submit name="addition" value="Add"/>                    
                </td>
            </tr>
            <tr>
                <td>Result:</td>
                <td>${actionBean.result}</td>
            </tr>
        </table>
    </stripes:form>
    <p>
    <br/>
    <p>
    
    
  <table border="0">
  <tr>
    <td>
      <stripes:form action="/stackstripes/Stack.action" focus="" >
        Select a number:
          <stripes:select size="1" name="numToPush">
            <stripes:option value="1">1</stripes:option>
            <stripes:option value="2">2</stripes:option>
            <stripes:option value="3">3</stripes:option>
            <stripes:option value="4">4</stripes:option>
          </stripes:select>
        <stripes:submit value="push" name="push"/>
      </stripes:form>
    </td>
    <td>
      <stripes:form action="/stackstripes/Stack.action" focus="">
        <stripes:submit value="pop" name="pop"/>
      </stripes:form>
    </td>
   </tr>
</table>

Current contents of stack: ${actionBean.stack}

  </body>
</html>

